﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using secondhand.L2busslogic;
using secondhand.L1database;
using secondhand.L3object;

namespace secondhand.L4view
{
    public partial class yonghu_alert_info : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (TextBox1.Text.Length == 0)
            {
                Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('原密码不能为空 ');</script>");
                return;

            }
            userOB mydd = new userOB();
            mydd = userBL.Getwordsingle(Session["login"].ToString());
            if (mydd.pass_word != TextBox1.Text)
            {
                Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('原密码不正确 ');</script>");
                return;
            }
            else
            {
                Response.Redirect("~/L4View/yonghu/yonghu_alert_info1.aspx");
            }
        }
    }
}